export default {
  toggleLogin(state) {
    state.showLogin = !state.showLogin;
  },
  loginStatus(state, payload) {
    state.loginStatus = payload.loginStatus;
    state.identity = payload.identity ? payload.identity : '';
  }
};
